import request from '@/utils/request'

// 查询车位信息列表
export function listTcParking(query) {
  return request({
    url: '/energy/tcParking/list',
    method: 'get',
    params: query
  })
}

// 查询车位信息详细
export function getTcParking(id) {
  return request({
    url: '/energy/tcParking/' + id,
    method: 'get'
  })
}

// 新增车位信息
export function addTcParking(data) {
  return request({
    url: '/energy/tcParking',
    method: 'post',
    data: data
  })
}

// 修改车位信息
export function updateTcParking(data) {
  return request({
    url: '/energy/tcParking',
    method: 'put',
    data: data
  })
}

// 删除车位信息
export function delTcParking(id) {
  return request({
    url: '/energy/tcParking/' + id,
    method: 'delete'
  })
}
